package com.flong.vo;

import java.io.Serializable;
/**
 * @Description	ResultVo
 * @ClassName	ResultVo
 * @Date		2018年2月23日 下午5:53:07
 * @Author		liangjl
 * @Copyright (c) All Rights Reserved, 2018.
 */
public class ResultVo implements Serializable{
	private static final long serialVersionUID = -2251309027375517120L;
	
	private int code ;
	private String msg;
	private Object data;
	
	public ResultVo(int code, String msg) {
		super();
		this.code = code;
		this.msg = msg;
	}
	

	public ResultVo(int code, Object data) {
		this.code = code;
		this.data = data;
		if(code==0) {
			this.msg = "SUCCESS";
		}else {
			this.msg = "ERROR";
		}
	}
	
	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	

}
